"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IndexDataHelper = void 0;
const DateUtil_1 = require("../engine/utils/DateUtil");
const Logger_1 = require("../engine/utils/Logger");
const HttpHelper_1 = require("./HttpHelper");
class IndexDataHelper extends HttpHelper_1.HttpHelper {
    static index_daily() {
        let params = {
            "token": this.token,
            "api_name": "index_daily",
            "params": {
                "ts_code": "000333.SZ",
                "start_date": DateUtil_1.default.formatDateStr4(DateUtil_1.default.now()),
                "end_date": DateUtil_1.default.formatDateStr4(DateUtil_1.default.now()),
            },
            "fields": "" //字段列表，用于接口获取指定的字段，以逗号分隔，如"open,high,low,close"
        };
        this.sendHttpRequest(params, this.url, (response, body) => {
            Logger_1.Logger.log("body==", body);
            let bodyObj = JSON.parse(body);
            let code = bodyObj["code"];
            if (code == 0) {
                let data = bodyObj["data"];
            }
            else {
            }
        });
    }
}
exports.IndexDataHelper = IndexDataHelper;
